<?php
$this->pageTitle = Yii::app()->name . ' - Register';
$this->breadcrumbs=array(
	'Register',
);?>
<h1><?php echo $this->id; ?></h1>

<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'register-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'nick'); ?>
        <?php echo $form->textField($model, 'nick'); ?>
        <?php echo $form->error($model, 'nick'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email'); ?>
        <?php echo $form->error($model, 'email'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'password'); ?>
        <?php echo $form->passwordField($model, 'password'); ?>
        <?php echo $form->error($model, 'password'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton('Register'); ?>
        <?php
        echo CHTML::link('登录', array('/site/login'));
        ?>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->

